Expand description
§op-alloy-consensus
Optimism consensus interface.
This crate contains constants, types, and functions for implementing Optimism EL consensus and communication. This
includes an extended OpTxEnvelope
type with deposit transactions, and receipts containing OP Stack
specific fields (deposit_nonce
+ deposit_receipt_version
).
In general a type belongs in this crate if it exists in the alloy-consensus
crate, but was modified from the base Ethereum protocol in the OP Stack.
For consensus types that are not modified by the OP Stack, the alloy-consensus
types should be used instead.
§Provenance
Much of this code was ported from reth-primitives as part of ongoing alloy migrations.
Re-exports§
pub use hardforks::Hardforks;
Modules§
- Support for EIP-1559 parameters after holocene.
- OP Stack Hardfork Transaction Updates
Structs§
- A L1 info deposit transaction source.
- Receipt containing result of transaction execution.
OpDepositReceipt
with calculated bloom filter, modified for the OP Stack.- Deposit transactions, also known as deposits are initiated on L1, and executed on L2.
- An upgrade deposit transaction source.
- A deposit transaction source.
Enums§
- Source domains for deposit transactions.
- Source domain identifiers for deposit transactions.
- Receipt envelope, as defined in EIP-2718, modified for OP Stack chains.
- The Ethereum EIP-2718 Transaction Envelope, modified for OP Stack chains.
- Optimism
TransactionType
flags as specified in EIPs 2718, 1559, and 2930, as well as the deposit transaction spec - The TypedTransaction enum represents all Ethereum transaction request types, modified for the OP Stack.
Constants§
- Identifier for an Optimism deposit transaction
Traits§
- A trait representing a deposit transaction with specific attributes.
- Receipt is the result of a transaction execution.
Type Aliases§
- An Optimism block type.